import plugin from '../../../lib/plugins/plugin.js'
import Config from '../models/Config.js'

export class xyplus extends plugin {
  constructor() {
    super({
      name: "小月plus",
      dsc: "xyplus",
      event: "message",
      priority: 300,
      rule: [{
        reg: "^#?小月plus",
        fnc: "xyplus",
      }]
    })
  }

  async xyplus() {
    if (!Config.getConfig().plus) return false
    return this.reply(segment.video(`${Config.getConfig().plus_url}`))
  }
}